package dao.impl;

import dao.UserDAO;
import entity.User;
import util.JdbcUtil;

import java.sql.SQLException;

public class UserImpl implements UserDAO {
    @Override
    public User login(String username, String pwd) throws SQLException {
        return JdbcUtil.queryOne(User.class,
                "select * from user where username = ? and pwd = ?",
                username,pwd);
    }
}
